@extends('layouts.base')
@section('title', '系统平台管理')
@section('content')
<!-- ============================================================== -->
<!-- Container fluid  -->
<!-- ============================================================== -->
<div class="container-fluid">
	<!-- ============================================================== -->
	<!-- Bread crumb and right sidebar toggle -->
	<!-- ============================================================== -->
	<div class="row page-titles">
	    <div class="col-md-5 align-self-center">
	        <h3 class="text-themecolor">系统基本信息--配置</h3>
	    </div>
	    <div class="col-md-7 align-self-center">
	        <ol class="breadcrumb">
	            <li class="breadcrumb-item"><a href="javascript:void(0)">首页</a></li>
	            <li class="breadcrumb-item">系统平台基本信息配置</li>
	        </ol>
	    </div>
	</div>
	<!-- ============================================================== -->
	<!-- End Bread crumb and right sidebar toggle -->
	<!-- ============================================================== -->

	<!-- ============================================================== -->
	<!-- Start Page Content -->
	<!-- ============================================================== -->
	<div class="row">
	    <div class="col-12">
	        <div class="card">
	            <div class="card-body">
                	<div class="card-body">
						@if ($errors->any())
							@foreach ($errors->all() as $error)
							<div class="alert alert-danger">
								{{ $error }}
							</div>
							@endforeach
						@endif

						@if(session()->has("data"))
							<div class="alert alert-{{session("data")['class']}}">
								{{ session('data')['msg'] }}
							</div>
						@endif
						<form action="{{ route('admin.config.store') }}" method="post">
							@csrf
							<input type="hidden" name="name" value="information">
							<input type="hidden" name="title" value="基本信息配置">
                            <div class="form-row">
                                <div class="col-md-8 mb-3">
                                  <label for="company">公司名称：</label>
                                  <input type="text" name="company" value="{{isset($config['company'])?$config['company']:''}}" class="form-control" id="company" placeholder="请填写公司名称"  >
                                </div>
                                <div class="col-md-8 mb-3">
                                  <label for="address">公司地址：</label>
                                  <input type="text" name="address" value="{{isset($config['address'])?$config['address']:''}}" class="form-control" id="address" placeholder="请填写公司地址"  >
								</div>
								<div class="col-md-8 mb-3">
									<label for="phone">客户热线：</label>
									<input type="text" name="phone" value="{{isset($config['phone'])?$config['phone']:''}}" class="form-control" id="phone" placeholder="请填写客户热线"  >
								</div>
								<div class="col-md-8 mb-3">
									<label for="copyright">备案号：</label>
									<input type="text" name="copyright" value="{{isset($config['copyright'])?$config['copyright']:''}}" class="form-control" id="copyright" placeholder="请填写备案号"  >
								</div>
                            </div>
                            <button class="btn btn-primary" type="submit">提交</button>
                        </form>    
                    </div>        
	            </div>
	        </div>
	    </div>
	</div>
</div>         
                        
@stop
